Sets the browser used to run the script. Use this statement to specify a browser for a script without changing the default browser setting.
This statement must be preceded by the Script.SetContext statement and followed by the Script.RunApp statement.
Note: After a browser type is set, the script always uses that browser. To change the browser in the same script, use another SetBrowser statement.
Syntax
SetBrowser(BrowserType)
Arguments
| Argument | Description |
|---|---|
| BrowserType | Browser type to use to run the script: BrowserTypeChrome, BrowserTypeFirefox, or BrowserTypeIE. |
Supported objects
Script
Example
Script.SetContext("WysiCorp Login/1.0")
Script.SetBrowser(BrowserTypeFirefox)
Script.RunApp()